//
//  DatabaseTool.h
//  CHENGER
//
//  Created by mac on 16/11/24.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
static FMDatabase *_DB;
@interface DatabaseTool : NSObject
+(void)opendataandcreatetable;

+(NSArray *)getallcontact;
+(NSArray *)getallphonewithpeopleid:(NSInteger )peopleID;
+(NSInteger)insertcontactWithName:(NSString *)name;
+(void)insertPhoneWithPeopleID:(NSInteger)peopleID phone:(NSString *)phone;
@end
